<template>
  <div>
        <section class="menu-block">
            <h2>支付</h2>
            <div class="menu-block">
                <pre v-highlightA>
                    <code>
import {payment} from 'fzHybrid'
...
//此api为通过app调用支付宝或微信促使用户完成支付，本身回调结果并不能严格作为支付结果，以支付服务返回结果为准
//支付宝支付
payment.pay({
    channel:'alipay',
    callback:function(success,msg){},
    orderStr:''
})

//微信支付
payment.pay({
    channel:'weixin',
    callback:function(success,msg){},
    partnerId:'',//商户id
    prepayId:'',//预付单号
    nonceStr:'',//随机串，防重发
    sign:'',    //商家根据微信开放平台文档对数据做的签名
    ts:''       //时间戳，防重发
})
                    </code>
                </pre>
                <!-- <van-cell-group>
                    <van-field v-model="setStorageKey" label="key" placeholder="请输入若干字符" />
                    <van-field v-model="setStorageValue" label="value" placeholder="请输入若干字符" />
                </van-cell-group>
                <van-button size="large" type="primary" @click="setStorageClick">点击存储数据</van-button> -->
            </div>
        </section>
  </div>
</template>

<script>
import {Button, CellGroup, Cell, Field, Notify} from 'vant'
// import {payment} from 'fzHybrid'

export default {
    data () {
        return {
        }
    },
    methods: {
    },
    components: {
        [Button.name]: Button,
        [Cell.name]: Cell,
        [CellGroup.name]: CellGroup,
        [Field.name]: Field,
        [Notify.name]: Notify
    }
}
</script>

<style>
    @import '../../../static/css/index.css';
    .menu-block {
        padding: 0 0.2rem
    }
    h2 {
        margin-block-start: 0.83em;
        margin-block-end: 0.83em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        margin: 0;
        /* font-weight: 200; */
        font-size: 18px;
        color: rgba(69,90,100,.6);
        padding: 20px 15px 15px;
    }
</style>
